

<!DOCTYPE html>
<html class="writer-html5" lang="zh-CN" >
<head>
  <meta charset="utf-8">
  
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  
  <title>AIL 语言参考手册 &mdash; AIL-docs  文档</title>
  

  
  <link rel="stylesheet" href="../_static/css/theme.css" type="text/css" />
  <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />

  
  
  
  

  
  <!--[if lt IE 9]>
    <script src="../_static/js/html5shiv.min.js"></script>
  <![endif]-->
  
    
      <script type="text/javascript" id="documentation_options" data-url_root="../" src="../_static/documentation_options.js"></script>
        <script src="../_static/jquery.js"></script>
        <script src="../_static/underscore.js"></script>
        <script src="../_static/doctools.js"></script>
        <script src="../_static/language_data.js"></script>
        <script src="../_static/translations.js"></script>
    
    <script type="text/javascript" src="../_static/js/theme.js"></script>

    
    <link rel="index" title="索引" href="../genindex.html" />
    <link rel="search" title="搜索" href="../search.html" />
    <link rel="next" title="1. 操作符" href="operators.html" />
    <link rel="prev" title="map – 提供基本 HashMap 操作" href="../library/map.html" /> 
</head>

<body class="wy-body-for-nav">

   
  <div class="wy-grid-for-nav">
    
    <nav data-toggle="wy-nav-shift" class="wy-nav-side">
      <div class="wy-side-scroll">
        <div class="wy-side-nav-search" >
          

          
            <a href="../index.html" class="icon icon-home" alt="Documentation Home"> AIL-docs
          

          
          </a>

          
            
            
          

          
<div role="search">
  <form id="rtd-search-form" class="wy-form" action="../search.html" method="get">
    <input type="text" name="q" placeholder="Search docs" />
    <input type="hidden" name="check_keywords" value="yes" />
    <input type="hidden" name="area" value="default" />
  </form>
</div>

          
        </div>

        
        <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
          
            
            
              
            
            
              <p class="caption"><span class="caption-text">目录</span></p>
<ul class="current">
<li class="toctree-l1"><a class="reference internal" href="../whatsnew/index.html">版本介绍</a></li>
<li class="toctree-l1"><a class="reference internal" href="../tutorial/index.html">入门教程</a></li>
<li class="toctree-l1"><a class="reference internal" href="../library/index.html">标准库参考</a></li>
<li class="toctree-l1 current"><a class="current reference internal" href="#">语言参考</a><ul>
<li class="toctree-l2"><a class="reference internal" href="operators.html">1. 操作符</a></li>
<li class="toctree-l2"><a class="reference internal" href="types.html">2. 基本类型</a></li>
<li class="toctree-l2"><a class="reference internal" href="namespace.html">3. 名称空间</a></li>
<li class="toctree-l2"><a class="reference internal" href="struct.html">4. 结构体</a></li>
<li class="toctree-l2"><a class="reference internal" href="input_print.html">5. 基本输入和输出</a></li>
<li class="toctree-l2"><a class="reference internal" href="lexical.html">6. 词法分析</a></li>
<li class="toctree-l2"><a class="reference internal" href="basic_ctrl_flow.html">7. 基本控制流</a></li>
</ul>
</li>
</ul>

            
          
        </div>
        
      </div>
    </nav>

    <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">

      
      <nav class="wy-nav-top" aria-label="top navigation">
        
          <i data-toggle="wy-nav-top" class="fa fa-bars"></i>
          <a href="../index.html">AIL-docs</a>
        
      </nav>


      <div class="wy-nav-content">
        
        <div class="rst-content">
        
          















<div role="navigation" aria-label="breadcrumbs navigation">

  <ul class="wy-breadcrumbs">
    
      <li><a href="../index.html" class="icon icon-home"></a> &raquo;</li>
        
      <li>AIL 语言参考手册</li>
    
    
      <li class="wy-breadcrumbs-aside">
        
            
            <a href="../_sources/reference/index.rst.txt" rel="nofollow"> View page source</a>
          
        
      </li>
    
  </ul>

  
  <hr/>
</div>
          <div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
           <div itemprop="articleBody">
            
  <div class="section" id="ail">
<h1>AIL 语言参考手册<a class="headerlink" href="#ail" title="永久链接至标题">¶</a></h1>
<p>本内容作为AIL语言的参考手册，仅作为对AIL语言的 <strong>简单参考</strong> 。若要系统地学习AIL语言，请阅读 <strong>可靠的</strong> 相关教程。</p>
<div class="toctree-wrapper compound">
<ul>
<li class="toctree-l1"><a class="reference internal" href="operators.html">1. 操作符</a></li>
<li class="toctree-l1"><a class="reference internal" href="types.html">2. 基本类型</a><ul>
<li class="toctree-l2"><a class="reference internal" href="types.html#id2">2.1. 数字</a><ul>
<li class="toctree-l3"><a class="reference internal" href="types.html#id3">2.1.1. 精度与范围</a></li>
<li class="toctree-l3"><a class="reference internal" href="types.html#id4">2.1.2. 表示方式</a><ul>
<li class="toctree-l4"><a class="reference internal" href="types.html#id5">2.1.2.1. 直接表示</a></li>
<li class="toctree-l4"><a class="reference internal" href="types.html#id6">2.1.2.2. 科学计数法</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="types.html#id7">2.1.3. 其他进制</a><ul>
<li class="toctree-l4"><a class="reference internal" href="types.html#id8">2.1.3.1. 2进制</a></li>
<li class="toctree-l4"><a class="reference internal" href="types.html#id9">2.1.3.2. 8进制</a></li>
<li class="toctree-l4"><a class="reference internal" href="types.html#id10">2.1.3.3. 16进制</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="types.html#id11">2.1.4. 复数</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="types.html#id12">2.2. 字符串</a><ul>
<li class="toctree-l3"><a class="reference internal" href="types.html#id13">2.2.1. 单行字符串</a></li>
<li class="toctree-l3"><a class="reference internal" href="types.html#id14">2.2.2. 多行字符串</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="types.html#id15">2.3. 数组</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="namespace.html">3. 名称空间</a><ul>
<li class="toctree-l2"><a class="reference internal" href="namespace.html#id2">3.1. 类型</a></li>
<li class="toctree-l2"><a class="reference internal" href="namespace.html#id3">3.2. 检索顺序</a></li>
<li class="toctree-l2"><a class="reference internal" href="namespace.html#id4">3.3. 结构与从属关系</a></li>
<li class="toctree-l2"><a class="reference internal" href="namespace.html#id5">3.4. 本地名称空间</a></li>
<li class="toctree-l2"><a class="reference internal" href="namespace.html#id6">3.5. 全局名称空间</a></li>
<li class="toctree-l2"><a class="reference internal" href="namespace.html#id7">3.6. 内置成员名称空间</a></li>
<li class="toctree-l2"><a class="reference internal" href="namespace.html#id8">3.7. 作用域声明</a><ul>
<li class="toctree-l3"><a class="reference internal" href="namespace.html#global">3.7.1. global声明</a></li>
<li class="toctree-l3"><a class="reference internal" href="namespace.html#nonlocal">3.7.2. nonlocal声明</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="namespace.html#id9">3.8. 查看名称空间</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="struct.html">4. 结构体</a><ul>
<li class="toctree-l2"><a class="reference internal" href="struct.html#id2">4.1. 结构体</a><ul>
<li class="toctree-l3"><a class="reference internal" href="struct.html#id3">4.1.1. 定义结构体</a></li>
<li class="toctree-l3"><a class="reference internal" href="struct.html#id4">4.1.2. 结构体类型</a></li>
<li class="toctree-l3"><a class="reference internal" href="struct.html#id5">4.1.3. 受保护成员</a></li>
<li class="toctree-l3"><a class="reference internal" href="struct.html#id6">4.1.4. 私有成员</a></li>
<li class="toctree-l3"><a class="reference internal" href="struct.html#id7">4.1.5. 绑定方法</a><ul>
<li class="toctree-l4"><a class="reference internal" href="struct.html#id8">4.1.5.1. 方法的参数</a><ul>
<li class="toctree-l5"><a class="reference internal" href="struct.html#id9">4.1.5.1.1. 命名建议</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="struct.html#id10">4.1.6. 实例化结构体</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="struct.html#id11">4.2. 结构体对象</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="input_print.html">5. 基本输入和输出</a><ul>
<li class="toctree-l2"><a class="reference internal" href="input_print.html#print">5.1. print语句</a></li>
<li class="toctree-l2"><a class="reference internal" href="input_print.html#input">5.2. input语句</a></li>
<li class="toctree-l2"><a class="reference internal" href="input_print.html#id2">5.3. 题外话：更为灵活的输入输出</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="lexical.html">6. 词法分析</a><ul>
<li class="toctree-l2"><a class="reference internal" href="lexical.html#id2">6.1. 行</a><ul>
<li class="toctree-l3"><a class="reference internal" href="lexical.html#id3">6.1.1. 逻辑行</a></li>
<li class="toctree-l3"><a class="reference internal" href="lexical.html#id4">6.1.2. 物理行</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="lexical.html#id5">6.2. 注释</a></li>
<li class="toctree-l2"><a class="reference internal" href="lexical.html#id6">6.3. 行拼接</a><ul>
<li class="toctree-l3"><a class="reference internal" href="lexical.html#id7">6.3.1. 显式行拼接</a></li>
<li class="toctree-l3"><a class="reference internal" href="lexical.html#id8">6.3.2. 隐式行拼接</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="basic_ctrl_flow.html">7. 基本控制流</a><ul>
<li class="toctree-l2"><a class="reference internal" href="basic_ctrl_flow.html#if-elif-else">7.1. if-elif-else语句</a><ul>
<li class="toctree-l3"><a class="reference internal" href="basic_ctrl_flow.html#id2">7.1.1. 格式要求</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="basic_ctrl_flow.html#while">7.2. while语句</a><ul>
<li class="toctree-l3"><a class="reference internal" href="basic_ctrl_flow.html#id3">7.2.1. 格式要求</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="basic_ctrl_flow.html#for">7.3. for语句</a><ul>
<li class="toctree-l3"><a class="reference internal" href="basic_ctrl_flow.html#id4">7.3.1. 格式要求</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="basic_ctrl_flow.html#breakcontinue">7.4. break与continue</a></li>
<li class="toctree-l2"><a class="reference internal" href="basic_ctrl_flow.html#try-catch-finally">7.5. try-catch-finally语句</a></li>
</ul>
</li>
</ul>
</div>
</div>


           </div>
           
          </div>
          <footer>
  
    <div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
      
        <a href="operators.html" class="btn btn-neutral float-right" title="1. 操作符" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right"></span></a>
      
      
        <a href="../library/map.html" class="btn btn-neutral float-left" title="map – 提供基本 HashMap 操作" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left"></span> Previous</a>
      
    </div>
  

  <hr/>

  <div role="contentinfo">
    <p>
        
        &copy; 版权所有 2020, ChenHongbo

    </p>
  </div>
    
    
    
    Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a
    
    <a href="https://github.com/rtfd/sphinx_rtd_theme">theme</a>
    
    provided by <a href="https://readthedocs.org">Read the Docs</a>. 

</footer>

        </div>
      </div>

    </section>

  </div>
  

  <script type="text/javascript">
      jQuery(function () {
          SphinxRtdTheme.Navigation.enable(true);
      });
  </script>

  
  
    
   

</body>
</html>